package com.second.app.designpattern.rule.impl.jiekougeli.soft;


/**
 * @Author GYZ
 * @Date 2023/7/25
 * <pre>
 *
 * </pre>
 */
public class Main {

    public static void main(String[] args) {
        A a = new A();

        a.depend1(new B());

        a.depend2(new B());

        a.depend3(new B());

        C c = new C();

        c.depend1(new D());

        c.depend4(new D());

        c.depend5(new D());
    }
}
